package com.zhz.common.enums;

import com.zhz.common.exception.assertion.CommonExceptionAssert;
import lombok.AllArgsConstructor;

/**
 * <p>参数校验异常返回结果</p>
 *
 * @author zhouhengzhe
 */
@AllArgsConstructor
public enum ArgumentResponseEnum implements CommonExceptionAssert {
    /**
     * 绑定参数校验异常
     */
    VALID_ERROR(6000, "参数校验异常"),

    ;

    /**
     * 返回码
     */
    private final int code;
    /**
     * 返回消息
     */
    private final String message;

    /**
     * 获取编码
     *
     * @return
     */
    @Override
    public Integer getCode() {
        return this.code;
    }

    /**
     * 获取描述
     *
     * @return
     */
    @Override
    public String getMessage() {
        return this.message;
    }
}
